<%@   page language="java" contentType="text/html;   charset=UTF-8"%>

<div class="container">
	<div class="row">
		<div class="col-xs-5">
			<div class="logo">
				<h1>
					<a href="#"><img alt="" src="resources/images/logo.png" style="width:65%; padding:10px 0 0 0;"></a>
				</h1>
			</div>
		</div>
		<div class="col-xs-7" id="login-info">
			<c:choose>
				<c:when
					test="${not empty sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}">
					<div id="login-info-user" style="margin-top:2%;">
						<a href="user-detail/${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}"
							id="system-info-account" target="_blank">${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}</a>
						<span>|</span> <a href="j_spring_security_logout"><i
							class="fa fa-sign-out"></i>退出</a>
					</div>
				</c:when>
				<c:otherwise>
					<a class="btn btn-primary" href="user-register"
						style="display: none;">用户注册</a>
					<a class="btn btn-success" href="user-login-page">登录</a>
				</c:otherwise>
			</c:choose>
		</div>
	</div>
</div>